package top.whq6.study.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import top.whq6.study.dao.LessonDao;
import top.whq6.study.entity.Lesson;
import top.whq6.study.service.LessonService;

public class LessonServiceImpl implements LessonService {

  @Autowired
  LessonDao lessonDao;

  @Override
  public void add(Lesson s) {
    lessonDao.addLesson(s);
  }

  @Override
  public void del(int id) {

    lessonDao.delLesson(id);
  }

  @Override
  public void modify(Lesson s) {
    lessonDao.modLesson(s);
  }
}
